package com.smart.six.beanproperty;

import com.smart.six.javabean.MyDataSource;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author junrui.wang
 * @create 2018/6/6
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("com/smart/six/beanproperty/beans.xml");
        ApplicationManager applicationManager = ac.getBean(ApplicationManager.class);
        System.out.println(applicationManager);

        ApplicationManager2annotation applicationManager2annotation = ac.getBean(ApplicationManager2annotation.class);
        System.out.println(applicationManager2annotation);

    }
}
